import {removeRefreshToken} from "~/server/db/refreshTokens.js";


export default defineEventHandler(async (event) => {
    try {
        const refreshToken = getCookie(event,'refresh_token')
        await removeRefreshToken(refreshToken)
    } catch (error) { }

    sendRefreshToken(event, null)

    return { message: 'Done' }
})